import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
import numpy as np

x=np.random.randn(10,10)
df=pd.DataFrame(x)

print(df)
co=df.corr()
#annot:显示数字
#corr:相关系数矩阵  皮尔逊系数矩阵
sns.heatmap(co,annot=True)
plt.show()